﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //string name = Request.Form["name"];
            //string password = Request.Form["password"];
            //Response.Redirect("WebForm1.aspx?name=" + name + "&password=" + password);
        }

        protected void Button2_Click1(object sender, EventArgs e)
        {
            string Name = name.Text;
            string Password = password.Text;

            Response.Redirect($"WebForm1.aspx?Name={name}&Password={password}");
        }
    }
}